package com.kele.utils;

import com.kele.domain.User;
import org.junit.jupiter.api.Test;
import org.springframework.util.StringUtils;

import javax.servlet.http.HttpServletRequest;

/**
 * 创作人 王箫凯
 * Date 2021/6/14
 * Time 9:50
 * 工具类-->用于判断用户的个人信息是否完善
 * @author 王箫凯
 */
public class newUser {

    public boolean isNewUser(User user){
        boolean flag=true;

        if (user.getAge()==0 || user.getEmail()==null ||"".equals(user.getEmail()) ||
            "".equals(user.getNickname()) || user.getNickname()==null || "".equals(user.getSex())
                || user.getSex()==null
        ){
            flag=false;
        }
        return flag;
    }
    @Test
    public void kda(){
        String a="生,二,音,美,影,运,科,技,社,其";
        a=a.replaceAll(",","\"");
        System.out.println(a);
    }

}
